/*
 * Copyright [2022] [https://www.xiaonuo.vip]
 *
 * Snowy采用APACHE LICENSE 2.0开源协议，您在使用过程中，需要注意以下几点：
 *
 * 1.请不要删除和修改根目录下的LICENSE文件。
 * 2.请不要删除和修改Snowy源码头部的版权声明。
 * 3.本项目代码可免费商业使用，商业使用请保留源码和相关描述文件的项目出处，作者声明等。
 * 4.分发源码时候，请注明软件出处 https://www.xiaonuo.vip
 * 5.不可二次分发开源参与同类竞品，如有想法可联系团队xiaonuobase@qq.com商议合作。
 * 6.若您的项目无法满足以上几点，需要更多功能代码，获取Snowy商业授权许可，请在官网购买授权，地址为 https://www.xiaonuo.vip
 */
package com.gzx.plugin.ams.modular.pickUp.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import com.fhs.core.trans.vo.TransPojo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;

/**
 * ams_item_pickup_record实体
 *
 * @author 刘志刚
 * @date 2025/01/08 16:01
 **/
@Getter
@Setter
@TableName("ams_item_pickup_record")
public class AmsItemPickupRecord implements TransPojo {

    /**
     * ID
     */
    @TableId
    @Schema(description = "ID")
    private String id;

    /**
     * COMMODITY_CODE
     */
    @Trans(type = TransType.DICTIONARY, key = "commodity", ref = "commodityName")
    private String commodityCode;

    /**
     * COMMODITY_NAME
     */
    @Schema(description = "COMMODITY_NAME")
    private String commodityName;

    /**
     * BARCODE
     */
    @Schema(description = "BARCODE")
    private String barcode;

    /**
     * QUANTITY
     */
    @Schema(description = "QUANTITY")
    private BigDecimal quantity;

    /**
     * PURPOSE
     */
    @Schema(description = "PURPOSE")
    private String purpose;

    /**
     * COLLECTED_BY
     */
    @Schema(description = "COLLECTED_BY")
    private Long collectedBy;

    /**
     * COLLECTED_NAME
     */
    @Schema(description = "COLLECTED_NAME")
    private String collectedName;

    /**
     * COLLECTED_DEPT
     */
    @Schema(description = "COLLECTED_DEPT")
    private String collectedDept;

    /**
     * COLLECTED_DEPT_NAME
     */
    @Schema(description = "COLLECTED_DEPT_NAME")
    private String collectedDeptName;

    /**
     * COMMODITY_IMG
     */
    @Schema(description = "COMMODITY_IMG")
    private String commodityImg;

    /**
     * SIGNATURE_IMG
     */
    @Schema(description = "SIGNATURE_IMG")
    private String signatureImg;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

    /**
     * 是否作废
     */
    @Schema(description = "是否作废")
    private Integer isCancel;

    /**
     * 是否退回
     */
    @Schema(description = "是否退回")
    private Integer isReturn;

    /**
     * 退回原因
     */
    @Schema(description = "退回原因")
    private String returnReason;

    /**
     * TENANT_ID
     */
    @Schema(description = "TENANT_ID")
    private String tenantId;

    /**
     * SECOND_DIRECTORY
     */
    @Schema(description = "SECOND_DIRECTORY")
    private String secondDirectory;

    /**
     * CREATE_DEPT
     */
    @Schema(description = "CREATE_DEPT")
    private String createDept;

    /**
     * CREATE_BY
     */
    @Schema(description = "CREATE_BY")
    private String createBy;

    /**
     * CREATE_TIME
     */
    @Schema(description = "CREATE_TIME")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * UPDATE_BY
     */
    @Schema(description = "UPDATE_BY")
    private String updateBy;

    /**
     * UPDATE_TIME
     */
    @Schema(description = "UPDATE_TIME")
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * CREATE_USER
     */
    @Schema(description = "CREATE_USER")
    @TableField(fill = FieldFill.INSERT)
    private String createUser;

    /**
     * UPDATE_USER
     */
    @Schema(description = "UPDATE_USER")
    @TableField(fill = FieldFill.UPDATE)
    private String updateUser;

    /**
     * DELETE_FLAG
     */
    @Schema(description = "DELETE_FLAG")
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private String deleteFlag;

    @Trans(type = TransType.DICTIONARY, key = "Office_supplies")
    private Integer officeSupplies;

    private Integer type;

}
